<!DOCTYPE HTML>
<title>Canvas test: size.attributes.removed</title>
<!--[if IE]><script src="../excanvas/excanvas.js"></script><![endif]-->
<script src="../tests.js"></script>
<link rel="stylesheet" href="../tests.css">
<link rel="prev" href="size.attributes.reflect.2.html" title="size.attributes.reflect.2">
<link rel="next" href="size.attributes.parse.whitespace.html" title="size.attributes.parse.whitespace">
<body class="show_output">
<p>
 <a href="size.attributes.reflect.2.html" accesskey="p" title="[p] size.attributes.reflect.2">&lt;</a>
 <a href="index.html">[index]</a>
 <a href="size.attributes.parse.whitespace.html" accesskey="n" title="[n] size.attributes.parse.whitespace">&gt;</a>
<h1><a href="index.size.html">size</a>.<a href="index.size.attributes.html">attributes</a>.removed</h1>
<p class="desc">Removing content attributes reverts to default size</p>
<div class="refs">References:
<ul>
<li><a href="spec.html#testrefs.size.missing">size.missing</a>

</ul>
</div>

<p class="output">Actual output:</p>
<canvas id="c" class="output" width="120" height="60"><p class="fallback">FAIL (fallback content)</p></canvas>
<p class="output expectedtext">Expected output:<p><img src="size.attributes.removed.png" class="output expected" id="expected" alt="">
<ul id="d"></ul>
<script>
_addTest(function(canvas, ctx) {

canvas.removeAttribute('width');
_assertEqual(canvas.width, 300, "canvas.width", "300");


});
</script>

